﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
using WebTemplate.DAL.Repositories;
using WebTemplate.DAL.Entities;
using System.Web.UI.WebControls;
using System.Web.UI;


namespace WebTemplate.Web 
{
    public partial class Carousel : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            NewsRepository repository = new NewsRepository();

            uxNewsList.DataSource = repository.TopFive();
            uxNewsList.DataBind();
        }
    }
}

